package com.tancire.question.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 问题类型对象 train_problem_type
 *
 * @author tancire
 * @date 2024-10-09
 */
public class TrainProblemType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 类型名称
     */
    @Excel(name = "类型名称")
    private String typeName;

    /**
     * 类型图标
     */
    @Excel(name = "类型图标")
    private String typeIcon;

    /**
     * 类型排序
     */
    @Excel(name = "类型排序")
    private Long typeSort;

    /**
     * 类型热度
     */
    @Excel(name = "类型热度")
    private Long typeHot;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Long delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeIcon(String typeIcon) {
        this.typeIcon = typeIcon;
    }

    public String getTypeIcon() {
        return typeIcon;
    }

    public void setTypeSort(Long typeSort) {
        this.typeSort = typeSort;
    }

    public Long getTypeSort() {
        return typeSort;
    }

    public void setTypeHot(Long typeHot) {
        this.typeHot = typeHot;
    }

    public Long getTypeHot() {
        return typeHot;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("typeName", getTypeName())
                .append("typeIcon", getTypeIcon())
                .append("typeSort", getTypeSort())
                .append("typeHot", getTypeHot())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
